package com.ebupt.migu.music.label.controller;

import com.ebupt.migu.music.common.entity.ResultObject;
import com.ebupt.migu.music.label.entity.LabelCustomerResponseBean;
import com.ebupt.migu.music.label.service.LabelCustomerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuyangyang@ebupt.com
 * @description: TODO
 * @date 2021/8/18 15:28
 */
@Slf4j
@RestController
@RequestMapping("/new/label")
public class LabelCustomerInfoController {

    @Autowired
    private LabelCustomerService service;

    /**
     * 判定当前客群是否需要将结果数据导入Redis
     *
     * @param groupId
     * @return
     */
    @RequestMapping("/info")
    public ResultObject staticLabelInfo(@RequestParam("groupId") String groupId) {
        return service.staticLabelInfo(groupId);
    }
}
